<template>
  <div id="feature">
    <div class="feature-item" v-for="(item,index) in features" :key="index">
      <a :href="item.link">
        <img :src="item.image" />
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
import { Swiper, SwiperItem } from "common/swiper";

export default {
  name: "feature",
  components: {
    Swiper,
    SwiperItem
  },
  props: {
    features: {
      type: Array,
      default: []
    }
  },
  methods: {}
};
</script>

<style scoped>
#feature {
  display: flex;
  margin-top: 10px;
  font-size: 14px;
  padding-bottom: 30px;
  border-bottom: 10px solid #eee;
}
.feature-item {
  flex: 1;
  text-align: center;
}
.feature-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
</style>
